<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<?php
header("Content-Type: text/html; charset=UTF-8");
if (!defined('RAIZ')) define('RAIZ', $_SERVER['DOCUMENT_ROOT']. '/neumo/'); 

require_once RAIZ .'lib/main.php';
$debug = false; //@entregar: cambiar debug a false. Revizar los CDN

if ($debug) {
  header('Cache-Control: private, pre-check=0, post-check=0');
  header('Expires: 0');
  header('Pragma: no-cache');
  ini_set('display_errors', 'On');
  ini_set('display_errors', 1);
} else {
  ini_set('display_errors', 'off');
  ini_set('display_errors', 0);
}
if ($debug) { //Utilizar
  $jquery = 'liblnk/lib/jquery/jquery-1.7.1.js';
  $jquery_ui = 'liblnk/lib/jquery-ui-1.8.18.custom/js/jquery-ui-1.8.18.custom.min.js';
  $jquery_ui_css = 'liblnk/lib/jquery-ui-1.8.18.custom/css/tere/jquery-ui-1.8.18.custom.css';
} else {
  $jquery = 'http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.1.min.js';
  $jquery_ui = 'http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.18/jquery-ui.min.js';
  $jquery_ui_css = 'liblnk/lib/jquery-ui-1.8.18.custom/css/tere/jquery-ui-1.8.18.custom.css';
}
require_once RAIZ . '/lib/aux-new.php';
crea_sesion();
fichero_borra_directorio_recursivo(RAIZ . '/temp', 2);
?>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
    <title>Asociación Canaria de Neumología y Cirugía Torácica</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
    <meta name="Language" content="es_ES">
    <link rel="shortcut icon" href="favicon.ico">

    <link type="text/css" href="<?php echo $jquery_ui_css ?>" rel="Stylesheet" media="screen">
    <link type="text/css" href="css/superfish.css" rel="Stylesheet">
    <link type="text/css" href="liblnk/lib/jquery.jqGrid-4.2.0/css/ui.jqgrid_1.css" rel="Stylesheet" media="screen">
    <link type="text/css" href="liblnk/lib/uploadify-v2.1.4/uploadify.css" rel="Stylesheet" media="screen">
    <link type="text/css" href="liblnk/lib/fancybox/jquery.fancybox-1.3.4.css" rel="Stylesheet" media="screen">    
    <link type="text/css" rel="stylesheet" href="css/fancy.css" >

    <link type="text/css" href="css/main.css" rel="Stylesheet" >
    <link type="text/css" href="css/usuario-perfil.css" rel="Stylesheet" >
    <link type="text/css" href="css/usuario-log.css" rel="Stylesheet" >
    <link type="text/css" href="css/usuario-log.css" rel="Stylesheet" >
    <link type="text/css" href="css/objetos.css" rel="Stylesheet"> 
    <link type="text/css" href="css/documentos.css" rel="Stylesheet"> 
    <link type="text/css" href="css/imagenes.css" rel="Stylesheet"> 
    <link type="text/css" href="css/enlaces.css" rel="stylesheet">
    <link type="text/css" href="css/objetos_presenta.css" rel="stylesheet">
    <link type="text/css" href="css/datos_generales.css" rel="stylesheet">
    <link type="text/css" href="css/neumocan.css" rel="stylesheet">
    
    <script type="text/javascript" src="liblnk/lib/modernizr/modernizr.custom.2.06.js"></script>

    <script type="text/javascript" src=" <?php echo $jquery ?>"></script>
    <script type="text/javascript" src="liblnk/lib/jquery.form/jquery.form.js"></script>

    <script type="text/javascript" src="liblnk/lib/jquery.jqGrid-4.3.1/js/i18n/grid.locale-es.js" ></script>
    <script type="text/javascript" src="liblnk/lib/jquery.jqGrid-4.3.1/js/jquery.jqGrid.src.js"></script>
<!--    <script type="text/javascript" src="../lib/jquery.jqGrid-4.2.0/plugins/jquery.searchFilter_1.js"></script>-->

    <script type="text/javascript" src="<?php echo $jquery_ui ?>"></script>
    <script type="text/javascript" src="liblnk/lib/jquery-ui-1.8.17.custom/js/jquery.ui.datepicker-es.js"></script>

    <script type="text/javascript" src="liblnk/lib/superfish-1.4.8/js/superfish.js"></script>
    <script type="text/javascript" src="liblnk/lib/maskedit/jquery.maskedinput.js"></script>

<!--    <script type="text/javascript" src="lib/uploadify-v3.0.0/swfobject.js"></script>-->
    <script type="text/javascript" src="liblnk/lib/uploadify-v2.1.4/swfobject.js"></script>
    <script type="text/javascript" src="liblnk/lib/uploadify-v2.1.4/jquery.uploadify.v2.1.4.js"></script>
    <script type="text/javascript" src="liblnk/lib/fancybox/jquery.fancybox-1.3.4.js"></script>

    <script type="text/javascript" src="liblnk/lib/eloy/auxjs.js"></script>
<!--    <script type="text/javascript" src="upload/upload.js"></script>-->

    <script type="text/javascript" src="lib/main.js"></script>
    <script type="text/javascript" src="menu/menu.js"></script>
    <script type="text/javascript" src="usuario/log/usuario-log-eventos.js"></script>
    <script type="text/javascript" src="usuario/perfil/usuario_perfil.js"></script>
    <script type="text/javascript" src="objetos/objetos.js"></script>
    <script type="text/javascript" src="objetos/grid_main.js"></script>

    <script type="text/javascript" src="objetos/grid_main.js"></script>
    <script type="text/javascript" src="usuario/grid_usuarios.js"></script>    
    <script type="text/javascript" src="enlaces/enlaces.js"></script>
    <script type="text/javascript" src="imagenes/imagenes.js"></script>
    <script type="text/javascript" src="documentos/documentos.js"></script>
    <script type="text/javascript" src="objetos/listado_grid.js"></script>
    <script type="text/javascript" src="general/datos_generales.js"></script>
    <script type="text/javascript" src="objetos/fichas/fichas_lista.js"></script>
  </head>
  <body>
    <div id='dialogo'></div>
    <div id="usuario_registro"></div>
    <div id="pefil_usuario"></div>
    <div id="tarjeta"></div>
    <div id="general"></div>
    <div id='main'>
      <?php require_once "cabecera.php" ?>
      <?php require_once "menu/menu.php" ?>
      <?php require_once "cuerpo.php" ?>
      <?php require_once "pie.php" ?> 
    </div>
    <div id="resultado"></div>
  </body>
</html>
